#ifndef XMLACTIONS_HXX
#define XMLACTIONS_HXX

#include <string.h>

#include "Frame.hxx"

struct HostInfo
{
    char IpAddress[ 20 ];
    int Port;
    char UserName[ 20 ];
    char Password[ 20 ];
	char File[ 20 ];
	char SourceFile [20];

	BoxRect FrontBox;
	BoxRect BackBox;

	float *frontPoints;
	float *backPoints;

	HostInfo()
	{
		IpAddress[ 0 ] = '\0';
		Port = 0;
		UserName[ 0 ] = '\0';
		Password[ 0 ] = '\0';
		File[ 0 ] = '\0';		
		SourceFile[0] = '\0'; 
	}
};

extern HostInfo __gHostInfo[3];

void loadHostInfo();
void loadHostInfo2();

void loadBoxInfo();
void writeBoxInfo();

void writePoints();
void loadPoints();
void loadPoints2();

void loadAppSetting(const char* pFilename);
void saveAppSetting(const char* pFilename);

#endif // XMLACTIONS_HXX
